package pack0909;

// 四大运算符---->逻辑运算符
public class DemoN {
    public static void main(String[] args) {
        // 随机数Math.random()-->[0,1)
        int a = (int) (Math.random() * 100 + 1); //[0,1)*100-->[0,100)+1-->[1,101)
        int b = (int) (Math.random() * 100 + 1);
        // 或(||) 与(&&) 非(!)
        boolean c1 = a > b || a < b;
        boolean c2 = a > b && a < b;
        boolean c3 = !(a > b);
        System.out.println("a的值是：" + a);
        System.out.println("b的值是：" + b);
        System.out.println(c1);
        System.out.println(c2);
        System.out.println(c3);
    }
}